package com.xszx.dao;

import com.xszx.config.PageRequest;
import com.xszx.entity.GoodInOutInfo;
import com.xszx.entity.MonthCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InOutDao {
    List<GoodInOutInfo> getInWarehouseRecord(PageRequest pageRequest);

    List<GoodInOutInfo> getOutWarehouseRecord(PageRequest pageRequest);

    List<GoodInOutInfo> getOutWarehouseRecordByConditions(String wnumber, String rcode, String rlocation, String gtype, String gbatch, String time);

    List<GoodInOutInfo> getOutWarehouseRecordByIds(@Param("ids") List<Integer> ids);

    List<GoodInOutInfo> getIntWarehouseRecordByConditions(String wnumber, String rcode, String rlocation, String gtype, String gbatch, String time);

    List<GoodInOutInfo> getIntWarehouseRecordByIds(@Param("ids") List<Integer> ids);
    List<GoodInOutInfo> getOutWarehouseRecord();

    double getAlertItems();  //库存总量

    List<MonthCount> getAlertTrend();  //库存总量变化趋势

}
